package com.zoiz.base;


import com.google.inject.Binder;
import com.google.inject.Module;
import com.zoiz.base.controller.AdminController;
import com.zoiz.base.controller.AdminMenuController;
import com.zoiz.util.TxInterceptor;

/**
 * Module for Guice.
 */
public class AdminModule implements Module {

    public void configure(Binder binder) {
    	//controller
    	binder.bind(AdminController.class).asEagerSingleton();
    	binder.bind(AdminMenuController.class).asEagerSingleton();
        //interceptor
        binder.bind(TxInterceptor.class).asEagerSingleton();
    }

}
